package com.uniview.common.mapper;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import org.springframework.beans.propertyeditors.PropertiesEditor;

public class CustomDateEditor extends PropertiesEditor {

	@Override
	public void setValue(Object value) {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			super.setValue(format.parse(value.toString()));
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

}
